TARGET = nano-httpd
CFLAGS = -std=c11 -Wall -Ihttp -Iconf -Ilog -I.

SRC = main.c net.c event_handle.c

OBJ = $(SRC:.c=.o)

.c.o:
	$(CC) -o $@ -c $< $(CFLAGS)

all: $(TARGET)

$(TARGET): $(OBJ)
	$(CC) -o $@ $(OBJ) $(CFLAGS)

clean:
	rm -rf $(TARGET) $(OBJ)
